﻿@model KhuyenMaiVang.DAL.Voucher

@{
    ViewBag.Title = "Voucher " + Model.Title;
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

@section heading{Voucher @Model.Title}
    <table>
        <tr>
            <td>Tiêu đề</td>
            <td><b>@Html.DisplayFor(model => model.Title)</b></td>
        </tr>
        <tr>
            <td>Description</td>
            <td>@Html.Raw(Model.Description)</td>
        </tr>
        <tr>
            <td>Features</td>
            <td>@Html.Raw(Model.Features)</td>
        </tr>
        <tr>
            <td>Requirements</td>
            <td>@Html.Raw(Model.Requirements)</td>
        </tr>
        <tr>
            <td>Body</td>
            <td>@Html.Raw(Model.Body)</td>
        </tr>
        <tr>
            <td>CostPrice</td>
            <td>@Html.DisplayFor(model => model.CostPrice)</td>
        </tr>
        <tr>
            <td>SellPrice</td>
            <td>@Html.DisplayFor(model => model.SellPrice)</td>
        </tr>
        <tr>
            <td>CreatedTime</td>
            <td>@Html.DisplayFor(model => model.CreatedTime)</td>
        </tr>
        <tr>
            <td>EndTime</td>
            <td>@Html.DisplayFor(model => model.EndTime)</td>
        </tr>
        <tr>
            <td>MinOrder</td>
            <td>@Html.DisplayFor(model => model.MinOrder)</td>
        </tr>
        <tr>
            <td>MaxOrder</td>
            <td>@Html.DisplayFor(model => model.MaxOrder)</td>
        </tr>
        <tr>
            <td>VoucherStatusID</td>
            <td>@Html.DisplayFor(model => model.VoucherStatusID)</td>
        </tr>
        <tr>
            <td>Category</td>
            <td>@Html.DisplayFor(model => model.Category.Name)</td>
        </tr>
        <tr>
            <td>City</td>
            <td>@Html.DisplayFor(model => model.City.Name)</td>
        </tr>
        <tr>
            <td>Business</td>
            <td>@Html.DisplayFor(model => model.Business.MangerName)</td>
        </tr>
        <tr>
            <td>URLAlias</td>
            <td>
                @Html.DisplayFor(model => model.URLAlias)
            </td>
        </tr>
        <tr>
            <td>Thumb</td>
            <td>
                @Html.DisplayFor(model => model.Thumb)<br />
                <img alt="" src="@Html.DisplayFor(model => model.Thumb)" height="100px"/>
            </td>
        </tr>
        <tr>
            <td>Background</td>
            <td>
            @Html.DisplayFor(model => model.Background)<br />
            <img alt="" src="@Html.DisplayFor(model => model.Background)" height="100px"/>
            </td>
        </tr>
    </table>

<p>
    @Html.ActionLink("Sửa voucher", "Edit", new { id=Model.ID }) |
    @Html.ActionLink("Quay lại", "Index")
</p>
